package com.bringway.asset.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import com.bringway.framework.controller.JsonController;

@Controller
@RequestMapping("/asset")
public class AssetController extends JsonController{

	@RequestMapping("/main")
	public ModelAndView main(){
		ModelAndView mv = new ModelAndView();
		mv.setViewName("/main/index.htm");
		return mv;
	}
	
	@RequestMapping("/learnfw/{folderName}/{pageName}")
	public ModelAndView uiMange(@PathVariable(value="folderName") String folderName,@PathVariable(value="pageName") String pageName){
		ModelAndView mv = new ModelAndView();
		mv.setViewName("/main/"+folderName+"/"+pageName+".htm");
		return mv;
	}
	
	@RequestMapping("/mainNew")
	public ModelAndView mainNew(){
		ModelAndView mv = new ModelAndView();
		mv.setViewName("/main/liger_main.htm");
		return mv;
	}
	
}
